<?php
/**
 * +----------------------------------------------------------------------
 * | summer framework
 * +----------------------------------------------------------------------
 * | Copyright (c) 2020 https://github.com/suframe/think-admin All rights reserved.
 * +----------------------------------------------------------------------
 * | Author: summer <806115620@qq.com>  2020/4/12 13:55
 * +----------------------------------------------------------------------
 */

namespace app\mall\enum;


class FreightTypeEnum extends Base
{

    private const PIECE = 'piece';
    private const VOLUME = 'volume';
    private const WEIGHT = 'weight';

    public static function toZhArray(): array
    {
        return [
            self::PIECE => '按件数',
            self::VOLUME => '按重量',
            self::WEIGHT => '按体积',
        ];
    }

    public static function toUnitZhArray(): array
    {
        return [
            self::PIECE => '件',
            self::VOLUME => 'kg',
            self::WEIGHT => 'cm',
        ];
    }

}